<?php
	defined('_JEXEC') or die('Restricted access');
	global $g_javascript_namespace;
	$local_header_script_generator = $this->main_tag->header_script_generator;
	// input container tag
	$local_where_container = $this->search_tag->create_and_add_child_at_bottom(t_base_tag_type::btt_div,$this->name.'_where_container');
	$local_where_container->class_name = $this->name . "_container_class";
	//
	$local_where_input_label = $local_where_container->create_and_add_child_at_bottom(t_base_tag_type::btt_label,$this->name.'_where_input_label');
	$local_input_label_text = "Dove?";
	$local_where_input_label->add_text_to_include($local_input_label_text);
	$local_where_input_label->class_name = $this->name . "_input_label_class";
	// input tag
	$local_where_input = $local_where_container->create_and_add_child_at_bottom(t_base_tag_type::btt_input,$this->name.'_where_input');
	$local_where_input->add_property('type','text');
	$local_where_input->class_name = $this->name . "_input_class";
	$local_where_input->add_event_as_local_method($local_where_input->name,'onfocus',"hide_example_tag",$this->delayed_position,"'$local_where_input->name',true");
	$local_where_input->add_event_as_local_method($local_where_input->name,'onblur',"hide_example_tag",$this->delayed_position,"'$local_where_input->name',false");
	// example tag
	$local_where_input_example = $local_where_container->create_and_add_child_at_bottom(t_base_tag_type::btt_div,$this->name.'_where_input_example');
	$local_where_input_example_text = "Regione, Provincia, Comune";
	$local_where_input_example->add_text_to_include($local_where_input_example_text);					
	$local_where_input_example->class_name = $this->name . "_input_example_class";
	$local_header_script_generator->add_style_sheet_property(".$local_where_input_example->name",'position','relative');
	$local_where_input_example->add_event_as_local_method($local_where_input_example->name,'onclick',"set_focus_tag",$this->delayed_position,"'$local_where_input->name'");
?>